import request from './request';
import type { ApiResponse } from '@/types/api';

/**
 * 收集工厂资源
 * @param factoryId 工厂ID
 * @returns 收集结果
 */
export const collectFactoryResources = (factoryId: string): Promise<ApiResponse<any>> => {
    return request.post(`/factory/${factoryId}/collect`);
};

/**
 * 获取工厂列表
 * @returns 工厂列表数据
 */
export const getFactoryList = (): Promise<ApiResponse<any>> => {
    return request.get('/factory/list');
};
